namespace QMVnSoft.Controls
{
    using QMVnSoft;
    using QMVnSoft.Invoices;
    using System;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Windows.Forms;

    public class FormHistoryViewer : FormControl
    {
        private IContainer components;
        private GBoxControl gBoxControl2;
        private object ii_InvoiceLogOrder = DBNull.Value;
        private string is_HistoryType = "";
        private LabelControl lblNgay_Ct;
        private LabelControl lblNgay_Ps;
        public LabelControl lblPhan_Loai;
        private LabelControl lblSo_Ct;
        private GridControl oDetailGridBrowser;
        private GridControl oDetailSubBrowser;
        private AppInvoiceLib oAppInvoiceLib;
        private DataTable oLocalDetailTable;
        private DataRow oLocalMasterRow;
        private TextControl txtLocked;
        public TextControl txtMa_Loai1;
        public TextControl txtMa_Loai2;
        public TextControl txtMa_Loai3;
        public TextDate txtNgay_Ct;
        public TextDate txtNgay_Ps;
        private TextControl txtPosted;
        public TextControl txtSo_Ct;
        private TextControl txtUserName;

        public FormHistoryViewer()
        {
            this.InitializeComponent();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormHistoryViewer));
            this.txtMa_Loai3 = new QMVnSoft.Controls.TextControl();
            this.txtMa_Loai2 = new QMVnSoft.Controls.TextControl();
            this.txtMa_Loai1 = new QMVnSoft.Controls.TextControl();
            this.txtNgay_Ct = new QMVnSoft.Controls.TextDate();
            this.txtNgay_Ps = new QMVnSoft.Controls.TextDate();
            this.lblSo_Ct = new QMVnSoft.Controls.LabelControl();
            this.lblNgay_Ct = new QMVnSoft.Controls.LabelControl();
            this.lblNgay_Ps = new QMVnSoft.Controls.LabelControl();
            this.txtPosted = new QMVnSoft.Controls.TextControl();
            this.txtLocked = new QMVnSoft.Controls.TextControl();
            this.txtSo_Ct = new QMVnSoft.Controls.TextControl();
            this.txtUserName = new QMVnSoft.Controls.TextControl();
            this.lblPhan_Loai = new QMVnSoft.Controls.LabelControl();
            this.gBoxControl2 = new QMVnSoft.Controls.GBoxControl();
            this.SuspendLayout();
            // 
            // txtMa_Loai3
            // 
            this.txtMa_Loai3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.txtMa_Loai3.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Loai3.CheckTextSearched = false;
            this.txtMa_Loai3.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtMa_Loai3.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Loai3.Location = new System.Drawing.Point(555, 509);
            this.txtMa_Loai3.MaxLength = 32;
            this.txtMa_Loai3.Name = "txtMa_Loai3";
            this.txtMa_Loai3.OldValue = null;
            this.txtMa_Loai3.ReadOnly = true;
            this.txtMa_Loai3.Size = new System.Drawing.Size(227, 20);
            this.txtMa_Loai3.TabIndex = 22;
            this.txtMa_Loai3.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Loai3.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Loai3.Value = ((object)(resources.GetObject("txtMa_Loai3.Value")));
            // 
            // txtMa_Loai2
            // 
            this.txtMa_Loai2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.txtMa_Loai2.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Loai2.CheckTextSearched = false;
            this.txtMa_Loai2.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtMa_Loai2.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Loai2.Location = new System.Drawing.Point(327, 509);
            this.txtMa_Loai2.MaxLength = 32;
            this.txtMa_Loai2.Name = "txtMa_Loai2";
            this.txtMa_Loai2.OldValue = null;
            this.txtMa_Loai2.ReadOnly = true;
            this.txtMa_Loai2.Size = new System.Drawing.Size(227, 20);
            this.txtMa_Loai2.TabIndex = 21;
            this.txtMa_Loai2.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Loai2.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Loai2.Value = ((object)(resources.GetObject("txtMa_Loai2.Value")));
            // 
            // txtMa_Loai1
            // 
            this.txtMa_Loai1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.txtMa_Loai1.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Loai1.CheckTextSearched = false;
            this.txtMa_Loai1.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtMa_Loai1.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Loai1.Location = new System.Drawing.Point(99, 509);
            this.txtMa_Loai1.MaxLength = 32;
            this.txtMa_Loai1.Name = "txtMa_Loai1";
            this.txtMa_Loai1.OldValue = null;
            this.txtMa_Loai1.ReadOnly = true;
            this.txtMa_Loai1.Size = new System.Drawing.Size(227, 20);
            this.txtMa_Loai1.TabIndex = 17;
            this.txtMa_Loai1.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Loai1.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Loai1.Value = ((object)(resources.GetObject("txtMa_Loai1.Value")));
            // 
            // txtNgay_Ct
            // 
            this.txtNgay_Ct.DateTimeFormat  = QMVnSoft.Controls.TextDate.DateTimeFormatType.Date;
            this.txtNgay_Ct.Enabled = false;
            this.txtNgay_Ct.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtNgay_Ct.InsertKeyMode = System.Windows.Forms.InsertKeyMode.Overwrite;
            this.txtNgay_Ct.Location = new System.Drawing.Point(99, 28);
            this.txtNgay_Ct.Mask = "00/00/0000";
            this.txtNgay_Ct.Name = "txtNgay_Ct";
            this.txtNgay_Ct.OldValue = null;
            this.txtNgay_Ct.Size = new System.Drawing.Size(79, 20);
            this.txtNgay_Ct.TabIndex = 15;
            this.txtNgay_Ct.Value = ((object)(resources.GetObject("txtNgay_Ct.Value")));
            // 
            // txtNgay_Ps
            // 
            this.txtNgay_Ps.DateTimeFormat  = QMVnSoft.Controls.TextDate.DateTimeFormatType.Date;
            this.txtNgay_Ps.Enabled = false;
            this.txtNgay_Ps.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtNgay_Ps.InsertKeyMode = System.Windows.Forms.InsertKeyMode.Overwrite;
            this.txtNgay_Ps.Location = new System.Drawing.Point(99, 3);
            this.txtNgay_Ps.Mask = "00/00/0000";
            this.txtNgay_Ps.Name = "txtNgay_Ps";
            this.txtNgay_Ps.OldValue = null;
            this.txtNgay_Ps.Size = new System.Drawing.Size(79, 20);
            this.txtNgay_Ps.TabIndex = 11;
            this.txtNgay_Ps.Value = ((object)(resources.GetObject("txtNgay_Ps.Value")));
            // 
            // lblSo_Ct
            // 
            this.lblSo_Ct.AutoSize = true;
            this.lblSo_Ct.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblSo_Ct.Location = new System.Drawing.Point(213, 31);
            this.lblSo_Ct.Name = "lblSo_Ct";
            this.lblSo_Ct.Size = new System.Drawing.Size(20, 14);
            this.lblSo_Ct.TabIndex = 19;
            this.lblSo_Ct.Text = "Số";
            // 
            // lblNgay_Ct
            // 
            this.lblNgay_Ct.AutoSize = true;
            this.lblNgay_Ct.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblNgay_Ct.Location = new System.Drawing.Point(12, 31);
            this.lblNgay_Ct.Name = "lblNgay_Ct";
            this.lblNgay_Ct.Size = new System.Drawing.Size(79, 14);
            this.lblNgay_Ct.TabIndex = 18;
            this.lblNgay_Ct.Text = "Ngày chứng từ";
            // 
            // lblNgay_Ps
            // 
            this.lblNgay_Ps.AutoSize = true;
            this.lblNgay_Ps.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblNgay_Ps.Location = new System.Drawing.Point(12, 6);
            this.lblNgay_Ps.Name = "lblNgay_Ps";
            this.lblNgay_Ps.Size = new System.Drawing.Size(78, 14);
            this.lblNgay_Ps.TabIndex = 20;
            this.lblNgay_Ps.Text = "Ngày lập phiếu";
            // 
            // txtPosted
            // 
            this.txtPosted.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtPosted.BackColor = System.Drawing.Color.Aquamarine;
            this.txtPosted.CheckTextSearched = false;
            this.txtPosted.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtPosted.Enabled = false;
            this.txtPosted.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtPosted.Location = new System.Drawing.Point(667, 3);
            this.txtPosted.Name = "txtPosted";
            this.txtPosted.OldValue = null;
            this.txtPosted.Size = new System.Drawing.Size(58, 20);
            this.txtPosted.TabIndex = 10;
            this.txtPosted.Text = "Sổ cái";
            this.txtPosted.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            this.txtPosted.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtPosted.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtPosted.Value = "Sổ cái";
            // 
            // txtLocked
            // 
            this.txtLocked.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtLocked.BackColor = System.Drawing.Color.Aquamarine;
            this.txtLocked.CheckTextSearched = false;
            this.txtLocked.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtLocked.Enabled = false;
            this.txtLocked.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtLocked.Location = new System.Drawing.Point(610, 3);
            this.txtLocked.Name = "txtLocked";
            this.txtLocked.OldValue = null;
            this.txtLocked.Size = new System.Drawing.Size(58, 20);
            this.txtLocked.TabIndex = 13;
            this.txtLocked.Text = "Khóa";
            this.txtLocked.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            this.txtLocked.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtLocked.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtLocked.Value = "Khóa";
            // 
            // txtSo_Ct
            // 
            this.txtSo_Ct.CheckTextSearched = false;
            this.txtSo_Ct.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtSo_Ct.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtSo_Ct.Location = new System.Drawing.Point(241, 28);
            this.txtSo_Ct.Name = "txtSo_Ct";
            this.txtSo_Ct.OldValue = null;
            this.txtSo_Ct.ReadOnly = true;
            this.txtSo_Ct.Size = new System.Drawing.Size(90, 20);
            this.txtSo_Ct.TabIndex = 16;
            this.txtSo_Ct.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtSo_Ct.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtSo_Ct.Value = ((object)(resources.GetObject("txtSo_Ct.Value")));
            // 
            // txtUserName
            // 
            this.txtUserName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtUserName.BackColor = System.Drawing.Color.Aquamarine;
            this.txtUserName.CheckTextSearched = false;
            this.txtUserName.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtUserName.Enabled = false;
            this.txtUserName.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtUserName.Location = new System.Drawing.Point(724, 3);
            this.txtUserName.Name = "txtUserName";
            this.txtUserName.OldValue = null;
            this.txtUserName.Size = new System.Drawing.Size(58, 20);
            this.txtUserName.TabIndex = 12;
            this.txtUserName.Text = "ADMIN";
            this.txtUserName.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            this.txtUserName.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtUserName.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtUserName.Value = "ADMIN";
            // 
            // lblPhan_Loai
            // 
            this.lblPhan_Loai.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.lblPhan_Loai.AutoSize = true;
            this.lblPhan_Loai.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblPhan_Loai.Location = new System.Drawing.Point(12, 512);
            this.lblPhan_Loai.Name = "lblPhan_Loai";
            this.lblPhan_Loai.Size = new System.Drawing.Size(50, 14);
            this.lblPhan_Loai.TabIndex = 14;
            this.lblPhan_Loai.Text = "Phân loại";
            // 
            // gBoxControl2
            // 
            this.gBoxControl2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.gBoxControl2.Font = new System.Drawing.Font("Arial", 8.25F);
            this.gBoxControl2.Location = new System.Drawing.Point(-5, 20);
            this.gBoxControl2.Name = "gBoxControl2";
            this.gBoxControl2.Size = new System.Drawing.Size(804, 7);
            this.gBoxControl2.TabIndex = 23;
            this.gBoxControl2.TabStop = false;
            // 
            // FormHistoryViewer
            // 
            this.ClientSize = new System.Drawing.Size(794, 532);
            this.Controls.Add(this.txtMa_Loai3);
            this.Controls.Add(this.txtMa_Loai2);
            this.Controls.Add(this.txtMa_Loai1);
            this.Controls.Add(this.txtNgay_Ct);
            this.Controls.Add(this.txtNgay_Ps);
            this.Controls.Add(this.lblSo_Ct);
            this.Controls.Add(this.lblNgay_Ct);
            this.Controls.Add(this.lblNgay_Ps);
            this.Controls.Add(this.txtPosted);
            this.Controls.Add(this.txtLocked);
            this.Controls.Add(this.txtSo_Ct);
            this.Controls.Add(this.txtUserName);
            this.Controls.Add(this.lblPhan_Loai);
            this.Controls.Add(this.gBoxControl2);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MinimumSize = new System.Drawing.Size(802, 566);
            this.Name = "FormHistoryViewer";
            this.Text = "History Viewer Form";
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        internal virtual void OnResetControls()
        {
            if (this.AppInvoiceParameters.FreeFields <= 0)
            {
                this.lblPhan_Loai.Visible = false;
                this.txtMa_Loai1.Visible = false;
                this.txtMa_Loai2.Visible = false;
                this.txtMa_Loai3.Visible = false;
            }
            this.DetailGridBrowser.SetColumnWidths();
            if (this.DetailSubBrowser != null)
            {
                this.DetailSubBrowser.SetColumnWidths();
            }
        }

        protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);
            if (((this.txtMa_Loai1 != null) && (this.AppInvoiceParameters != null)) && (this.AppInvoiceParameters.FreeFields > 0))
            {
                int num = base.ClientSize.Width - 0x71;
                this.txtMa_Loai1.Width = num / 3;
                this.txtMa_Loai2.Left = (this.txtMa_Loai1.Left + this.txtMa_Loai1.Width) + 1;
                this.txtMa_Loai2.Width = num / 3;
                this.txtMa_Loai3.Left = (this.txtMa_Loai2.Left + this.txtMa_Loai2.Width) + 1;
                this.txtMa_Loai3.Width = (num - this.txtMa_Loai1.Width) - this.txtMa_Loai2.Width;
            }
        }

        internal virtual void OnShow()
        {
            this.OnResetControls();
            this.Text = this.AppInvoiceParameters.InvoiceName;
            this.LocalMasterRow = this.AppInvoiceParameters.AppInvoiceMethod.GetMasterHistoryDataRow(this.HistoryType, this.InvoiceLogOrder);
            this.LocalDetailTable = this.AppInvoiceParameters.AppInvoiceMethod.GetDetailHistoryTable(this.HistoryType, this.InvoiceLogOrder);
            this.DetailGridBrowser.DataSource = new BindingSource(this.LocalDetailTable, this.LocalDetailTable.TableName);
            if (this.DetailSubBrowser != null)
            {
                this.DetailSubBrowser.DataSource = new BindingSource(this.LocalDetailTable, this.LocalDetailTable.TableName);
            }
            this.txtNgay_Ps.Value = this.LocalMasterRow["Ngay_Ps"];
            this.txtNgay_Ct.Value = this.LocalMasterRow["Ngay_Ct"];
            this.txtMa_Loai1.Value = this.LocalMasterRow["Ma_Loai1"];
            this.txtMa_Loai2.Value = this.LocalMasterRow["Ma_Loai2"];
            this.txtMa_Loai3.Value = this.LocalMasterRow["Ma_Loai3"];
            this.SetPostedText();
        }

        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            Keys keys = keyData;
            if (keys != Keys.Escape)
            {
                if (keys != Keys.F4)
                {
                    return base.ProcessCmdKey(ref msg, keyData);
                }
            }
            else
            {
                base.Close();
                return true;
            }
            if (this.DetailSubBrowser != null)
            {
                bool flag = false;
                for (Control control = base.ActiveControl; (control != null) && (control != this); control = control.Parent)
                {
                    if (control is GridDetail)
                    {
                        flag = true;
                        break;
                    }
                }
                if (flag)
                {
                    if (this.DetailGridBrowser.Visible)
                    {
                        this.DetailSubBrowser.Visible = true;
                        this.DetailSubBrowser.Focus();
                        this.DetailSubBrowser.CurrentCell = this.DetailSubBrowser[0, this.DetailGridBrowser.CurrentCell.RowIndex];
                        this.DetailGridBrowser.Visible = false;
                    }
                    else
                    {
                        this.DetailGridBrowser.Visible = true;
                        this.DetailGridBrowser.Focus();
                        this.DetailGridBrowser.CurrentCell = this.DetailGridBrowser[0, this.DetailSubBrowser.CurrentCell.RowIndex];
                        this.DetailSubBrowser.Visible = false;
                    }
                }
            }
            return true;
        }

        private void SetPostedText()
        {
            if (this.LocalMasterRow.Table.Columns.Contains("Posted"))
            {
                switch (((int) this.LocalMasterRow["Posted"]))
                {
                    case 0:
                        this.txtPosted.Value = "Huỷ";
                        goto Label_006D;

                    case 1:
                        this.txtPosted.Value = "Sổ c\x00e1i";
                        goto Label_006D;
                }
                this.txtPosted.Value = "Duyệt";
            }
        Label_006D:
            if (this.LocalMasterRow.Table.Columns.Contains("Locked"))
            {
                this.txtLocked.Value = ((bool) this.LocalMasterRow["Locked"]) ? "Khóa" : "Mở";
            }
            this.txtUserName.Value = this.LocalMasterRow["UserName"];
            this.txtSo_Ct.Value = this.LocalMasterRow["So_Ct"];
        }

        [Category("History viewer properties"), Browsable(false), Description("The datagridview to show detail invoice.")]
        public GridControl DetailGridBrowser
        {
            get
            {
                return this.oDetailGridBrowser;
            }
            set
            {
                if (this.oDetailGridBrowser != value)
                {
                    this.oDetailGridBrowser = value;
                    this.oDetailGridBrowser.AutoGenerateColumns = false;
                }
            }
        }

        [Description("The datagridview to show sub detail invoice."), Category("Editor properties"), Browsable(false)]
        public GridControl DetailSubBrowser
        {
            get
            {
                return this.oDetailSubBrowser;
            }
            set
            {
                if (this.oDetailSubBrowser != value)
                {
                    this.oDetailSubBrowser = value;
                    this.oDetailSubBrowser.AutoGenerateColumns = false;
                }
            }
        }

        [Browsable(false), Category("History viewer properties"), Description("The parameters that declare by system, user, invoice code."), DefaultValue((string) null)]
        public AppInvoiceLib AppInvoiceParameters
        {
            get
            {
                if (this.oAppInvoiceLib == null)
                {
                    this.AppInvoiceParameters = new AppInvoiceLib();
                }
                return this.oAppInvoiceLib;
            }
            set
            {
                this.oAppInvoiceLib = value;
            }
        }

        [Description("The transaction type."), Category("History viewer properties"), DefaultValue((string) null), Browsable(false)]
        public string HistoryType
        {
            get
            {
                if (string.IsNullOrEmpty(this.is_HistoryType))
                {
                    return this.AppInvoiceParameters.HistoryType;
                }
                return this.is_HistoryType;
            }
            set
            {
                if (this.is_HistoryType != value)
                {
                    this.is_HistoryType = value;
                }
            }
        }

        [Description("The history invoice order."), Browsable(false), Category("History viewer properties"), DefaultValue((string) null)]
        public object InvoiceLogOrder
        {
            get
            {
                return this.ii_InvoiceLogOrder;
            }
            set
            {
                this.ii_InvoiceLogOrder = value;
            }
        }

        [Category("History viewer properties"), Browsable(false), Description("The detail Table."), DefaultValue((string) null)]
        public DataTable LocalDetailTable
        {
            get
            {
                return this.oLocalDetailTable;
            }
            set
            {
                this.oLocalDetailTable = value;
            }
        }

        [Browsable(false), Category("History viewer properties"), Description("The master row."), DefaultValue((string) null)]
        public DataRow LocalMasterRow
        {
            get
            {
                return this.oLocalMasterRow;
            }
            set
            {
                this.oLocalMasterRow = value;
            }
        }
    }
}

